﻿@using Grand.Infrastructure.Plugins
@using Microsoft.AspNetCore.Mvc.Controllers
@inject IServiceProvider ServiceProvider
@{
    var plugin = PluginManager.FindPlugin((ViewContext.ActionDescriptor as ControllerActionDescriptor)?.ControllerTypeInfo.AsType()).Instance(ServiceProvider);
    //friendly name
    var friendlyName = plugin?.PluginInfo.FriendlyName;
    Layout = "_AdminLayout";
    //page title
    ViewBag.Title = friendlyName;
}

<div class="row">
    <div class="col-md-12">
        <div class="x_panel light form-fit">
            <div class="x_title">
                <div class="caption caption-flex">
                    <i class="fa fa-tasks"></i>
                    <div class="captionText">@friendlyName</div>
                </div>
            </div>
            <div class="x_content form">
                <div class="form-horizontal">
                    <div class="form-body">
                        <div class="x_content">
                            @RenderBody()
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>